<%@page import="cn.com.dhcc.turbo.entity.sysmgr.UserInfo.SL_AUTH_FLAG"%>
<%@page import="cn.com.dhcc.app.core.base.BaseController"%>
<%@page import="cn.com.dhcc.turbo.entity.sysmgr.UserInfo"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
 	UserInfo userInfo = (UserInfo)BaseController.getCurrentUserInfo(request.getSession());
	if(userInfo!=null){
	 	boolean isMwrAdminUser = userInfo.getSlAuthFlag().equalsIgnoreCase(SL_AUTH_FLAG.MWR_NODE_ADMIN_USER.getCode());
	 	boolean isNotMwrMgrAdminUser = userInfo.getSlAuthFlag().equalsIgnoreCase(SL_AUTH_FLAG.NOT_MWR_MGR_NODE_ADMIN_USER.getCode());
	 	boolean isNotMgrAdminUser = userInfo.getSlAuthFlag().equalsIgnoreCase(SL_AUTH_FLAG.NOT_MGR_NODE_ADMIN_USER.getCode());
	 	boolean isSysUser = userInfo.getSlAuthFlag().equalsIgnoreCase(SL_AUTH_FLAG.SYS_USER.getCode());
	 	
	 	boolean isNodeUser = userInfo.isNodeUser();
	 	//中央管理节点的用户
	 	pageContext.setAttribute("isMwrAdminUser", isMwrAdminUser);
	 	//非中央的管理节点的用户
	    pageContext.setAttribute("isNotMwrMgrAdminUser", isNotMwrMgrAdminUser);
	 	//不是管理节点的用户
	    pageContext.setAttribute("isNotMgrAdminUser", isNotMgrAdminUser);
	 	//业务系统的用户
	    pageContext.setAttribute("isSysUser", isSysUser);
	 	
	 	//节点的用户
	    pageContext.setAttribute("isNodeUser", isNodeUser);
	}
%>
<script type="text/javascript">
 var _login_url='<%=request.getContextPath()%>'+"/";
</script>
